let request = require("./request")

// 登录
const createUser = (data) => request('/api/wxuser/', "post", data)//创建用户
const getUserInfo = (data) => request('/api/wxuser/', 'get', data)//获取用户信息
const putUser = (data) => request('/api/wxuser/', 'put', data)//更新用户信息
const delUser = (data) => request('/api/wxuser/', 'DELETE', data)//删除用户
//手机号
const phone = (data) => request('/api/wxuser/telephone', "post", data)
//支付
const pay = (data) => request('api/wxuser/pay', "put", data)
//无限池赏池
const getwuxiangood = (data) => request('api/wuxianshang/good', "get", data)
const getwuxiangame = (data) => request('api/wuxianshang/game', "get", data)
//抽奖
const raffle = (data) => request('/api/wuxianshang/raffle/', 'post', data)
//抽奖记录
const getraf = (data) => request('/api/wuxianshang/raffle/', 'get', data)
//背包
const userpackage = (data) => request('/api/wxuser/userpackage', 'get', data)
//提炼魂晶
const delpackage = (data) => request('/api/wxuser/userpackage', 'DELETE', data)
//明细
const userweal = (data) => request('/api/wxuser/userwealthrecord', 'get', data)
module.exports = {
  phone, createUser, getUserInfo, putUser, delUser, pay, getwuxiangame, getwuxiangood, raffle, getraf, userpackage, delpackage, userweal
}

